package com.softa.common.sysconfig.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "xxl.job")
public class XxlJobProperties {

    private Executor executor;

    private String accessToken;

    private String adminAddresses;

    @Data
    public  static  class Executor{
        private String appname;
        private String ip;
        private Integer port;
        private String logpath;
        private Integer logretentiondays;
    }
}
